//
//  UILabel+UILabel_new1.m
//  MyWeChat
//
//  Created by 蔡欣东 on 15/10/5.
//  Copyright © 2015年 蔡欣东. All rights reserved.
//

#import "UILabel+UILabel_new1.h"

@implementation UILabel (UILabel_new1)
+(CGSize)sizeOgString:(NSString *)str andFont:(UIFont *)font andMaxWith:(CGFloat)with{
    CGSize size = [str boundingRectWithSize:CGSizeMake(with, 999) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:font} context:nil].size;
    
    return CGSizeMake(size.width+15, size.height+20);
}
@end
